<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>订单管理</title>
    <%--    静态包含--%>
    <%@include file="/pages/common/head.jsp" %>
</head>
<body>

<%--静态包含--%>
<%@include file="/pages/common/manager_menu.jsp" %>


<div id="main">
    <table>

        <tr>
            <td>日期</td>
            <td>金额</td>
            <td>详情</td>
            <td>发货</td>

        </tr>
        <c:if test="${empty requestScope.orders}">
            <tr>
                <td colspan="4" style="color: black">当前暂无订单</td>
            </tr>
        </c:if>
        <c:if test="${not empty requestScope.orders}">
            <c:forEach items="${requestScope.orders}" var="order">
                <tr>
                    <td>${order.createTime}</td>
                    <td>${order.price}</td>
                    <td><a href="orderServlet?action=orderDetails&orderId=${order.orderId}">查看详情</a></td>
                    <td><a href="orderServlet?action=sendOrder&orderId=${order.orderId}">点击发货</a></td>
                </tr>
            </c:forEach>
        </c:if>

    </table>
</div>

<%--静态包含页脚--%>
<%@include file="/pages/common/footer.jsp" %>
</body>
</html>